package com.example.exceldemo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;

/**
 * @Description
 * @Author xiaohuang
 * @Date 2025/2/18
 */
@Data
public class Use {

    @ExcelProperty("序号")
    private Integer index;
    @ExcelProperty("姓名")
    private String name;
    @ExcelProperty("年龄")
    private Integer age;
//    @DateTimeFormat(value = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty("出生日期")
    private LocalDate date;
}
